import request from '@/utils/request'

// 查询表单配置列表
export function listFormconfig(query) {
  return request({
    url: '/system/formconfig/list',
    method: 'get',
    params: query
  })
}

// 查询表单配置详细
export function getFormconfig(id) {
  return request({
      url: '/system/formconfig/' + id,
    method: 'get'
  })
}

// 新增表单配置
export function addFormconfig(data) {
  return request({
    url: '/system/formconfig',
    method: 'post',
    data: data
  })
}

// 修改表单配置
export function updateFormconfig(data) {
  return request({
    url: '/system/formconfig',
    method: 'put',
    data: data
  })
}

// 删除表单配置
export function delFormconfig(id) {
  return request({
    url: '/system/formconfig/' + id,
    method: 'delete'
  })
}
/**
 * 查询树结构
 * @param data
 * @returns {*}
 */
export function getFormKpi(query) {
  return request({
    url: '/system/formconfig/getCityKpi',
    method: 'get',
    params: query
  })
}